﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ProviderCarCNG.aspx.cs" Inherits="provider_CarInsurance_ProviderCarCNG" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Car Rate Protection</h1>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        Type of Cover</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlCNG" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCNG_SelectedIndexChanged">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="True">Yes</asp:ListItem>
                        <asp:ListItem Value="False">No</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvCNG" runat="server" ControlToValidate="ddlCNG"
                        ErrorMessage="Select Type of Cover." Display="Dynamic" ValidationGroup="ncd"
                        InitialValue="-1"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtRate" runat="server" MaxLength="5"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvRate" runat="server" ControlToValidate="txtRate"
                        ErrorMessage="Enter ncd %" Display="Dynamic" ValidationGroup="ncd"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revRate" runat="server" ControlToValidate="txtRate"
                        ErrorMessage="Rate is not valid." ValidationGroup="ncd" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="carcapacity"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" runat="server" CssClass="float_btn" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="ibtSubmit_Click" ValidationGroup="ncd" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>
